package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    /**
     * 根据多个菜品id查询套餐id
     * @param dishIds
     * @return
     */

    //select setmeal_id from setmeal_dish where dish_id in()
    List<Long> selectByDishId(List<Long> dishIds);

    /**
     * 批量插入套餐菜品关系
     * @param setmealDishes
     */
    void save(List<SetmealDish> setmealDishes);

    void deleteBySetmealId(List<Long> ids);

}
